
import requests
from bs4 import BeautifulSoup

if __name__ == "__main__":
    server = "https://www.biqukan8.cc"
    target = "https://www.biqukan8.cc/1_1094/"
    req = requests.get(url=target)
    req.encoding = req.apparent_encoding
    html = req.text
    div_bf = BeautifulSoup(html, features="html.parser")
    div = div_bf.find_all("div", class_="listmain")
    # print(div[0])
    a_bf = BeautifulSoup(str(div[0]), features="html.parser")
    a_list = a_bf.find_all('a')
    for a in a_list:
        print(a.string, server + a.get("href"))

